. _
[Cool shit i made]

Wave

most useless Menu Bar tool written in swif

                         :                 
                          ::               
                           :::             
          :                ::::            
     :     :                ::::           
      :     ::              :::::          
       ::    :::             :::::         
        :::    :::           ::::::        
          :::   :::          :::::::      
           ::::  ::::        :::::::      
            :::::::::::      ::::::::     
              :::::::::::   :::::::::      
               ::::::::::::::::::::::      
                :::::::::::::::::::::      
                  :::::::::::::::::::      
:                   :::::::::::::::::      
 ::                   ::::::::::::::       
   ::::              ::::::::::::::::      
    ::::::::::::::::::::::::::::::::::    
      ::::::::::::::::::::::::::::::::: 
        ::::::::::::::::::::::::::::::: 
          ::::::::::::::::::::::   :::::
             .::::::::::::::.         ::

i’m retarded or ADHD as kids these days call it, and sometimes when i’m sitting and working, i start making weird-ass sounds without realizing how loud i am.
so i made a cute little tool that shows the sound wave from my mic, so i can tell if i’m being loud.

also, i added a useful IP checker to it. yes, they’re completely unrelated, but i also needed a tool to show me my IP, so i just… mixed them. get off my dick.

Screenshots

screenshot-wave
screenshot-wave-dropdown

the code for the project is here:
https://danial2026@github.com/danial2026/wasd-macos-app.git

build it, put it somewhere, and then update project_dir below:

      
bash
# Add this function to your ~/.zshrc file # Then you can run 'wave' from anywhere to launch the app wave() { # Check if WasdAppList is already running if pgrep -f "WasdAppList" > /dev/null; then echo "Wasd Waveform Monitor is already running" return 0 fi # Path to the project directory (update this to your actual path) local project_dir="$HOME/codes/wasd" # Try to find the app in common locations local app_path="" # Check if built with Swift Package Manager (release build) if [ -f "$project_dir/.build/release/WasdAppList" ]; then app_path="$project_dir/.build/release/WasdAppList" # Check if built with Swift Package Manager (debug build) elif [ -f "$project_dir/.build/debug/WasdAppList" ]; then app_path="$project_dir/.build/debug/WasdAppList" # Check if installed in /usr/local/bin elif [ -f "/usr/local/bin/WasdAppList" ]; then app_path="/usr/local/bin/WasdAppList" # Check if in PATH elif command -v WasdAppList &> /dev/null; then app_path="$(command -v WasdAppList)" else echo "Error: WasdAppList not found." echo "Please build the app first:" echo " cd $project_dir" echo " swift build -c release" return 1 fi # Launch the app in the background echo "Launching Wasd Waveform Monitor..." nohup "$app_path" > /dev/null 2>&1 & # Wait a moment to check if it started successfully sleep 0.5 if pgrep -f "WasdAppList" > /dev/null; then echo "Wasd Waveform Monitor started successfully" else echo "Warning: App may not have started. Check for errors." return 1 fi }
0%